package com.atguigu.gulimall.member.feign;

import com.atguigu.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 如何使用OpenFeign
 *  1. 开启Openfeign
 *  2. 编写接口 @FeignClient
 */
@FeignClient(value = "gulimall-coupon")
public interface CouponFeign {

    @RequestMapping("coupon/coupon/member/list")
    public R memberList();
}
